home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / overview / moreisbetter / mib-libraries / moreprocesses / moreprocesses.h < prev   
Encoding:
C/C++ Source or Header  |  2000-06-23  |  1.8 KB  |  59 lines

  1. /*
  2.     File:        MoreProcesses.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:    Pete Gontier
  7.  
  8.     Copyright:    Copyright (c) 1998 Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.  
  20.          <3>     1/22/99    PCG     TARGET_CARBON
  21.          <2>    11/11/98    PCG     fix headers
  22.          <1>    11/10/98    PCG     first big re-org at behest of Quinn
  23.  
  24.     Old Change History (most recent first):
  25.  
  26.          <6>    10/11/98    Quinn   Convert "MorePrefix.h" to "MoreSetup.h".
  27.          <5>     11/9/98    PCG     fix comment 4
  28.          <4>     11/9/98    PCG     add copyright blurb
  29.          <3>      9/9/98    PCG     re-work import and export pragmas
  30.          <2>     7/24/98    PCG        coddle linker (C++, CFM-68K)
  31.          <1>     6/16/98    PCG     initial checkin
  32. */
  33.  
  34. #pragma once
  35.  
  36. #include "MoreSetup.h"
  37.  
  38. #include <Processes.h>
  39.  
  40. enum { kSignatureFinder = 'MACS' };
  41.  
  42. #ifdef __cplusplus
  43.     extern "C" {
  44. #endif
  45.  
  46. #pragma import on // for clients
  47. #pragma export on // for building a library
  48.  
  49. pascal OSStatus FindProcessBySignature        (OSType, ProcessSerialNumber *);
  50. pascal OSStatus GetSomeProcessInfo            (const ProcessSerialNumber *, ProcessInfoRec *);
  51. pascal OSStatus IsProcessBackgroundOnly        (const ProcessSerialNumber *, Boolean *);
  52.  
  53. #pragma import reset // for clients
  54. #pragma export reset // for building a library
  55.  
  56. #ifdef __cplusplus
  57.     }
  58. #endif
  59.